package com.hf.eagle.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hf.eagle.dao.SiteLinkDao;
import com.hf.eagle.domain.SiteLink;
import com.hf.eagle.service.SiteLinkService;

/**
 * @author Xu,XiaoYuan
 * @version 2011-09-06 23:44
 */
@Service
public class SiteLinkServiceImpl implements SiteLinkService {

	@Resource
	private SiteLinkDao siteLinkDao;
	

	public Long createSiteLink(SiteLink t) {
		return this.siteLinkDao.insertEntity(t);
	}

	public SiteLink getSiteLink(SiteLink t) {
		return this.siteLinkDao.selectEntity(t);
	}

	public Long getSiteLinkCount(SiteLink t) {
		return this.siteLinkDao.selectEntityCount(t);
	}

	public List<SiteLink> getSiteLinkList(SiteLink t) {
		return this.siteLinkDao.selectEntityList(t);
	}

	public int modifySiteLink(SiteLink t) {
		return this.siteLinkDao.updateEntity(t);
	}

	public int removeSiteLink(SiteLink t) {
		return this.siteLinkDao.updateEntity(t);
	}

	public List<SiteLink> getSiteLinkPaginatedList(SiteLink t) {
		return this.siteLinkDao.selectEntityPaginatedList(t);
	}

}
